//
//  GYBaseViewController.h
//  research
//
//  Created by 章鱼 on 17/3/27.
//  Copyright © 2017年 simon. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GYBaseNavigationBar.h"

@interface GYBaseViewController : UIViewController

@property (nonatomic, strong, readonly) UINavigationItem *navItem;
@property (nonatomic, strong) GYBaseNavigationBar *navBar;

@property (nonatomic, strong, readonly) UIButton *backUpButton;
@property (nonatomic, strong, readonly) UIButton *rightMenuButton;

#pragma mark -
#pragma mark Navigation Control
//nav
- (void)initNavBar;

//title
- (void)initNavBarWithTitle:(NSString *)title
                  tintColor:(UIColor *)tintColor;
- (void)initNavBarWithImageName:(NSString *)imageName
                      tintColor:(UIColor *)tintColor;;
- (void)initNavBarWithCustomView:(UIView *)view
                       tintColor:(UIColor *)tintColor;;
//left
- (void)addBackButtonItem;
- (void)addBackButtonItemWithTitle:(NSString *)title
                           backImg:(NSString *)backImg;
//right
- (void)addRightButtonItem;
- (void)addCheckButtonItem;
- (void)addCloseButtonItem;
- (void)addRightButtonItemWithTitle:(NSString *)title
                            backImg:(NSString *)backImg;
//hide
- (void)hideNavigationBar:(BOOL)hide
                 animated:(BOOL)animated
                   finish:(void(^)(void))finishBlock;

//action
- (void)backButtonItemClick;
- (void)rightButtonItemClick;

@end
